//
//  MYSearchResultModel.m
//  HeXun-zixuan
//
//  Created by 范名扬 on 16/3/18.
//  Copyright © 2016年 com.hztc. All rights reserved.
//

#import "MYSearchResultModel.h"

@implementation MYSearchResultModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeInt:_n_TradeId forKey:@"search_id"];
    [aCoder encodeBool:_m_isSelected forKey:@"search_selected"];
    [aCoder encodeObject:_m_stockCode forKey:@"search_code"];
    [aCoder encodeObject:_m_stockName forKey:@"search_name"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    if (self) {
        self.n_TradeId = [aDecoder decodeIntForKey:@"search_id"];
        self.m_isSelected = [aDecoder decodeBoolForKey:@"search_selected"];
        self.m_stockName = [aDecoder decodeObjectForKey:@"search_name"];
        self.m_stockCode = [aDecoder decodeObjectForKey:@"search_code"];
    }
    
    return self;
}

@end
